<include file="public@header" />
</head>

<body>
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li><a href="{:url('Company/index')}">企业管理</a></li>
            <li class="active"><a href="{:url('Company/add')}">添加企业</a></li>
        </ul>
        <div class="row margin-top-20">
            <div class="col-md-6">
                <form class="js-ajax-form" action="{:url('Company/editPost')}" method="post">
                    <input type="hidden" name="id" value="{$company.id}">
                    <div class="tab-content">
                        <div class="tab-pane active" id="A">
                            <div class="form-group">
                                <label for="input-name">
                                    <span class="form-required">*</span>职位名称</label>
                                <div>
                                    <input type="text" class="form-control" id="input-name" name="name" value="{$company.name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-name">
                                    <span class="form-required">*</span>职位描述</label>
                                <div>
                                    <textarea class="form-control" id="input-descrption" name="description">{$company.description}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-name">
                                    <span class="form-required">*</span>分类</label>
                                <div>
                                    <select class="form-control" id="input-category_id" name="category_id">
                                        <option></option>
                                        <volist name="category" id="vo">
                                            <option value="{$vo.id}" <if condition="$company.category_id eq $vo.id">selected</if>>{$vo.name}</option>
                                        </volist>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="input-name">
                                    <span class="form-required">*</span>企业地址</label>
                                <div>
                                    <input type="text" class="form-control" id="input-name" name="location" value="{$company.location}">
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <button type="submit" class="btn btn-primary">{:lang('EDIT')}</button>
                        <a class="btn btn-default" href="{:url('AdminCategory/index')}">{:lang('BACK')}</a>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>

</html>